﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using WcfClientGenerator.UI.Resx;

namespace WcfClientGenerator.UI.Converters
{
    public class ViewTypeTextConverter : IValueConverter
    {
        #region IValueConverter Members

        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            bool isAdvancedView = (bool)value;
            return isAdvancedView ? AppResources.advancedViewText : AppResources.basicViewText;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
